---
title: API Reference
---

# API Reference

## Hooks

- [`useChat`](./api-reference/use-chat)
- [`useCompletion`](./api-reference/use-completion)

## AI RSC Helpers

- [`createAI`](./api-reference/generative-ui/create-ai)
- [`useUIState`](./api-reference/generative-ui/use-ui-state)
- [`useAIState`](./api-reference/generative-ui/use-ai-state)
- [`useActions`](./api-reference/generative-ui/use-actions)
- [`createStreamableUI`](./api-reference/generative-ui/create-streamable-ui)
- [`createStreamableValue`](./api-reference/generative-ui/create-streamable-value)
- [`getAIState`](./api-reference/generative-ui/get-ai-state)
- [`getMutableAIState`](./api-reference/generative-ui/get-mutable-ai-state)
- [`Tokens`](./api-reference/tokens)

## Streaming Helpers

- [`HuggingFaceStream`](./api-reference/providers/huggingface-stream)
- [`AnthropicStream`](./api-reference/providers/anthropic-stream)
- [`LangChainStream`](./api-reference/providers/langchain-stream)
- [`OpenAIStream`](./api-reference/providers/openai-stream)
- [`StreamingTextResponse`](./api-reference/streaming-text-response)
- [`AIStream`](./api-reference/ai-stream)
- [`streamToResponse`](./api-reference/stream-to-response)
- [`experimental_StreamData`](./api-reference/stream-data)

## Prompt Construction Helpers

- [`experimental_buildOpenAssistantPrompt`](./api-reference/prompts#experimental_buildopenassistantprompt)
- [`experimental_buildStarChatBetaPrompt`](./api-reference/prompts#experimental_buildstarchatbetaprompt)
- [`experimental_buildLlama2Prompt`](./api-reference/prompts#experimental_buildllama2prompt)
